import request from '@/utils/request'

// 查询指数信息列表
export function getTidxInfosList(query) {
    return request({
        url: '/marketdata/tidxCtroller/queryTidxInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 查询指数成分列表
export function getTidxCompsList(query) {
    return request({
        url: '/marketdata/tidxCtroller/queryTidxComponentInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 查询指数行情列表
export function getTidxSeriessList(query) {
    return request({
        url: '/marketdata/tidxCtroller/queryTidxSeriesInfoByPage.action',
        method: 'get',
        params: query
    })
}

// 查询指数行情列表
export function updateTidxSeries(indexFrom) {
    return request({
        url: '/marketdata/tidxCtroller/updateTidxSeries.action',
        method: 'post',
        data: indexFrom
    })
}
